package org.jeecg.qis.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 设备检验参数配置
 * @Author: LiCY
 * @Date:   2023-06-19
 * @Version: V1.0
 */
@Data
@TableName("mes_proc_data_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_proc_data_cfg对象", description="设备检验参数配置")
public class MesProcDataCfg implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
	@TableId
    private Integer recId;
	/**产线/产线组*/
	@Excel(name = "产线/产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
	@Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线/产线组")
    private String line;
	/**工位*/
	@Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    private String op;
	/**工站*/
	@Excel(name = "工站", width = 15)
    @ApiModelProperty(value = "工站")
    private String stn;
	/**产品/产品组*/
	@Excel(name = "产品/产品组", width = 15)
    @ApiModelProperty(value = "产品/产品组")
    private String partno;
	/**参数名称*/
	@Excel(name = "参数名称", width = 15)
    @ApiModelProperty(value = "参数名称")
    private String name;
	/**参数描述*/
	@Excel(name = "参数描述", width = 15)
    @ApiModelProperty(value = "参数描述")
    private String description;
	/**单位*/
	@Excel(name = "单位", width = 15)
    @ApiModelProperty(value = "单位")
    private String um;
	/**地址*/
	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "isEnabled")
	@Dict(dicCode = "isEnabled")
    @ApiModelProperty(value = "状态")
    private String status;
	/**上限值*/
	@Excel(name = "上限值", width = 15)
    @ApiModelProperty(value = "上限值")
    private BigDecimal lowLimit;
	/**下限值*/
	@Excel(name = "下限值", width = 15)
    @ApiModelProperty(value = "下限值")
    private BigDecimal upLimit;
	/**是否限制检查*/
	@Excel(name = "是否限制检查", width = 15, dicCode = "ProcDataCfg_limitCheck")
	@Dict(dicCode = "ProcDataCfg_limitCheck")
    @ApiModelProperty(value = "是否限制检查")
    private String limitCheck;
	@Excel(name = "小数位数", width = 15)
	@ApiModelProperty(value = "小数位数")
	private String dp;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
